﻿@model Lost_and_Found.Models.ViewModel.ItemSuggestModel
@{
    ViewBag.Title = "Thêm đồ vật";
    Layout = "~/Views/Shared/_Backend.cshtml";

}
<script src="@Url.Content("~/content/tagmanager-master/bootstrap-tagmanager.js")" type="text/javascript"></script>
<link href="@Url.Content("~/content/tagmanager-master/bootstrap-tagmanager.css")" rel="stylesheet" type="text/css" />


<div class="row">
    <h1 class="page_title">thêm đồ vật...</h1>
</div>

@using (Html.BeginForm())
{
    @Html.ValidationSummary(true)
    <fieldset>
        <legend></legend>
        <div class="row">
            @Html.LabelFor(m => m.Name)
            @Html.TextBoxFor(m => m.Name, new { @id = "textBox"})
            @Html.ValidationMessageFor(m => m.Name)
        </div>
        <div class="row">
            @Html.LabelFor(m => m.Attribute)
            @Html.TextBoxFor(m => m.Attribute, new { @id = "tagManager" })
            @Html.ValidationMessageFor(m => m.Attribute)
        </div>
        <input type="submit" onclick ="notEmpty()" class="btn btn-success" value="Lưu lại" />
    </fieldset>
}

@Html.ActionLink("Quay lại Quản lý Item","ItemManager")
<script>
    function notEmpty() {
        var x = document.getElementById("tagManager");
        for (var ch in x) {
            if (ch != " ") {
                
            }
        }
    }
</script>